import request from "@/utils/request";

// 下架登记列表
export function listTable(query) {
  return request({
    url: "/sales/register/list",
    method: "get",
    params: query,
  });
}
// 	新增下架登记
export function addRegister(data) {
  return request({
    url: "/sales/register",
    method: "post",
    data
  });
}
// 	删除下架登记
export function delRegister(itemIds) {
  return request({
    url: "/sales/register/" + itemIds,
    method: "delete",
  });
}

// 	删除下架登记
export function getRegister(id) {
  return request({
    url: "/sales/register/" + id,
    method: "get",
  });
}

// 修改下架登记
export function updateRegister(data) {
  return request({
    url: '/sales/register/',
    method: 'put',
    data
  })
}

// 付款方式
export function getPaymentWay(query) {
  return request({
    url: '/sales/register/paymentWay',
    method: 'get',
    params: query,
  })
}

// 销售备注
export function salesRemark(query) {
  return request({
    url: '/sales/register/salesRemark',
    method: 'get',
    params: query,
  })
}

// 其他
export function otherRemark(query) {
  return request({
    url: '/sales/register/otherRemark',
    method: 'get',
    params: query,
  })
}
